﻿/**********************************************************************************
 * Description:     
 * MemberVariable:
 * Functions:       
 * Modify information:     
 * 2008-8-5     New           DuYaoHui     Create Class
 * 
 * ********************************************************************************/
using System;
using Fjaspx.Common;

namespace Fjaspx.UI.Web
{
    public partial class Administrator_tag_tag_Custom : AdminPage
    {

        Fjaspx.Sys.Bll.ROYcms_CustomTag BLL = new Fjaspx.Sys.Bll.ROYcms_CustomTag();
        Fjaspx.Sys.Model.ROYcms_CustomTag Model = new Fjaspx.Sys.Model.ROYcms_CustomTag();
        protected void Page_Load(object sender, EventArgs e)
        {

            if (!IsPostBack)
            {
                SystemCms.AdminSesion();
                if (Request["del"] == "del")
                {
                    BLL.Delete(Convert.ToInt32(Request["id"]));
                }
                BIND();
            }
        }
        protected void Button_addTag_Click(object sender, EventArgs e)
        {
            Model.TAG = TextBox_tag.Text.Trim();
            Model.TAG_content = TextBox_tag_content.Text.Trim();
            Model.TAG_name = TextBox_TagName.Text.Trim();
            BLL.Add(Model);
            BIND();
        }
        void BIND()
        {
            Repeater1.DataSource = BLL.GetAllList();
            Repeater1.DataBind();

        }
    }
}